import React, { Component } from 'react'
import { NavBar, Icon } from 'antd-mobile';
import GoBack from '../../components/GoBack';
export default class Search extends Component {
    render() {
        return (
            <div>
                <NavBar
                    mode="dark"
                    icon={<Icon type="left" />}
                    onLeftClick={() => this.props.history.goBack()}
                >
                    搜索
                </NavBar>

                <div>GoBack组件</div>
                {/* 调用的时候要不将{...this.props}传给组件，要不就用witnRouter高阶组件  */}
                <GoBack {...this.props}></GoBack>
                <GoBack></GoBack>
            </div>
        )
    }
}
